
namespace SolarDevices
{
    public struct Register
    {
        public int Address;
        public string Label;
        public string UnitOfMeasure;
        public RegisterTableBase.DoConvert Conversion;

        public string Text
        {
            get
            {
                return Conversion(Address - 1);
            }
        }
    }

    public struct DisplayRegister
    {
        public int Address;
        public string Label;
        public string Text;
    }
}
